package factory;

import java.sql.*;

public class Conexao 
{
    private static final String CONN_JDBC_DRIVER = "oracle.jdbc.driver.OracleDriver";
    private static final String CONN_DATABASE_URL = "jdbc:oracle:thin:@127.0.0.1:1521:XE";
    private static final String CONN_DATABASE_USER = "ORAINT";
    private static final String CONN_DATABASE_PASSWORD = "a";
    
    private Conexao()
    {
        
    }
    
    public static Connection getConnection()
    {
        try
        {
            Class.forName(CONN_JDBC_DRIVER);
            return DriverManager.getConnection(CONN_DATABASE_URL , CONN_DATABASE_USER , CONN_DATABASE_PASSWORD);
        }
        catch(Exception e)
        {
            return null;
        }
    }
}